#!/usr/bin/env python3
"""
Flask博客应用启动文件
"""

import os
from app import create_app

# 创建应用实例
app = create_app(os.getenv('FLASK_ENV', 'development'))

if __name__ == '__main__':
    # 开发环境直接运行
    app.run(
        host='0.0.0.0',
        port=int(os.environ.get('PORT', 5000)),
        debug=os.getenv('FLASK_ENV') == 'development'
    )

